<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head th:replace="/pc/common::head(~{::custom_settings})">
		<th:block th:fragment="custom_settings">
		<title>项目变更令-添加原有清单</title>
		<style>
			.fa-arrow-circle-right{font-size:28px; display:block; margin-top:200px; line-height:60px; color:brown; cursor: pointer;}
			.fa-arrow-circle-left{font-size:28px; display:block; cursor: pointer;}
			.mini-fitboxss{position:absolute;height:auto; top:0; bottom:50px; width:100%; overflow:auto;}
			.disabled{color: #ccc; cursor: default;}
		</style>
	</th:block>
</head>
<body>
	<div class="mini-fitboxss">
	    <table class="around_list" style=" margin:0 auto;width:100%;">
	        <tr>
	            <td class="lg"><label>入驻商户：</label></td>
	            <td class="lg">
	                <div id="settleid" class="search-select" idField="id" textField="name" width="800" height="26" placeHolder="请选择入驻商户" enableFilter="true" onloaded="onLoaded" onvaluechanged="onValueChanged"></div>
	            </td>
	        </tr>
	    </table>
		<div style="width: 45%;height: 90%;float: left;">
		    <div id="datagrid1" class="search-treedatagrid" idField="id" parentField="pid" textField="goodname" showCheckBox="true" multiSelect="true" 
		    alternatingRows="true" expandLevel="1" style="width:100%;height:100%;" onselectchanged="datagrid1Selectchanged">
				<div property="columns">
					<div type="checkcolumn"></div>
					<div field="goodname" width="200" headAlign="center" textAlign="left">商品名称/规格</div>
					<div field="goodorigin" width="200" headAlign="center" textAlign="left">商品产地/计量单位</div>
				</div>
			</div>
		</div>
		<div style="width:58px; height:90%; float:left;">
			<i id="rightbtn" class="fa fa-arrow-circle-right disabled" onclick="update.addright()"></i>
			<i id="leftbtn" class="fa fa-arrow-circle-left disabled" onclick="update.removeright()"></i>
		</div>
		<div style="width: 49%;height: 90%;float: right;">
		    <div id="datagrid2" class="search-datagrid" idField="entityid" showCheckBox="true" multiSelect="true" showPager="false"
		    alternatingRows="true" style="width:100%;height:100%;" ondrawcell="onDrawCell" onselectchanged="datagrid2Selectchanged">
				<div property="columns">
					<div type="checkcolumn"></div>
					<div field="pname" width="150" headAlign="center" textAlign="left">商品</div>
					<div field="goodname" width="100" headAlign="center" textAlign="left">规格</div>
					<div field="goodorigin" width="100" headAlign="center" textAlign="left">计量单位</div>
					<div field="entitystate" width="80" headAlign="center" textAlign="center">状态</div>
				</div>
			</div>
		</div>
	</div>
	<div class="org-btn">
	    <input class="org-save" type="button" onclick="update.saveData()" value="保存"/>
	    <input class="org-close" type="button" onclick="window.closeWindow('cancel')" value="关闭"/>
	</div>
	<script type="text/javascript" th:src="@{{js}/pc/goodsales/UpdateGoodSalesHandler.js(js=${js})}"></script>
</body>
</html>